package com.studentmanagement.dao;

import com.studentmanagement.model.Course;

import java.util.List;
import java.util.Map;

public interface CourseMapper {
    Course getCourseById(Integer id);
    Course getCourseByCourseCode(String courseCode);
    List<Course> getCoursesByTeacherId(Integer teacherId);
    List<Course> getAllCourses();
    List<Course> searchCourses(Map<String, Object> params);
    int insertCourse(Course course);
    int updateCourse(Course course);
    int deleteCourse(Integer id);
}